package top.yongyan0624.service;

import com.github.pagehelper.PageInfo;
import top.yongyan0624.pojo.Teacher;

import java.util.List;

/**
 * @author Yongyan
 * @description: TODO
 * @date 2020/12/24
 **/
public interface TeacherService {
    //添加教师
    Integer addTeacher(Teacher teacher);
    //删除教师
    Integer deleteTeacher(Integer id);
    //修改教师
    Integer updateTeacher(Teacher teacher);
    //查询所有教师
    List<Teacher> findAllTeacher();
    PageInfo<Teacher> findAllTeacher(Integer pageNum, Integer pageSize);
    //根据id查询教师
    Teacher findById(Integer id);
    //根据姓名查询教师
    List<Teacher> findByName(String name);
    //查找教师
    List<Teacher> findTeacher(Teacher teacher);
    //统计教师总数

    Integer totalTeacher();
}
